package cn.tao.base.service;


import cn.tao.base.query.BaseQuery;
import cn.tao.utils.QueryResult;

import java.util.List;

public interface IBaseService<T> {

    void save(T t);

    void delete(Long id);

    void update(T t);

    T loadById(Long id);

    List<T> loadAll();

    //分页和高级查询
    QueryResult<T> findByQuery(BaseQuery query);


}
